<?php 
include_once "../../../lib/import.php";

setLocalLib(__FILE__);

$window = new WBResizableWindow(array(
	'title' => 'This is ResizableWindow',
	'x' => 'center',
	'y' => 'center',
	'width' => 300,
	'height' => 300,
	'layout' => 'fit'
));

$panel = $window->add(new GraphicsPanel(array(
	'parent' => $window,
	'align' => 'center',
	'name' => 'graphic',
	'width' => 200,
	'height' => 200,
	'hcenter' => true,
	'vcenter' => true	
)));

$window->createTimer('refresh', 200);

$window->visible = true;

wbstart();

function refresh() {
	global $window;	
	$window->refresh(true);
}
?>
